home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java for 3D & VRML Worlds
/
Java for 3d and VRML Worlds.iso
/
doc
/
homepage
/
tutorials
/
lesson7
/
shareeg2
/
moveball.wrl
< prev
next >
Wrap
Text File
|
1996-08-22
|
886b
|
44 lines
#VRML Draft #3 V2.0 utf8
PROTO Sony_BindSharedNode [ field SFNode transformNode NULL
field SFNode scriptNode NULL ] {}
WorldInfo { title "try"
info ["VsServer:spiw.com:7004"] }
DEF OBJ1 Transform {
translation 0 0 0
children [
DEF HITME TouchSensor {}
Shape {
geometry Sphere {}
}
]
}
DEF ScriptObj1 Script {
field SFNode obj1 USE OBJ1
eventIn SFTime move
eventIn SFString rpc_place_ball
eventOut SFVec3f obj1position
eventOut SFBool timerEnable
url "moveball.class"
}
DEF CLOCK TimeSensor {
loop TRUE
enabled TRUE
cycleInterval 0.2
stopTime -1
}
ROUTE ScriptObj1.obj1position TO OBJ1.set_translation
ROUTE ScriptObj1.timerEnable TO CLOCK.set_enabled
ROUTE CLOCK.cycleTime TO ScriptObj1.move
Sony_BindSharedNode {
transformNode USE OBJ1
scriptNode USE ScriptObj1
}